package org.example.api;

import org.example.Result;
import org.example.clue.entity.Clue;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

/**
 * name:微服务名字
 * path：控制器映射路径
 */
@FeignClient(name = "clue-noc",path = "/clue",fallback = ClueServiceApiFallback.class)
public interface ClueServiceApi {
    @GetMapping
    public Result<List<Clue>> getAll();
}